<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

//获得高级查询条件标志
String isHigherQuery = request.getParameter("isHigherQuery");
//获得高级查询条件数据
String queryingData = request.getParameter("queryingData");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>订单管理-订单列表</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
	<jsp:include page="../../include/baseManage.jsp"></jsp:include>
	
	<script type="text/javascript">
		var gbIsAdvQuery = <%=isHigherQuery %>;
		var gbQueryData = <%=queryingData %>;
	</script>
  </head>
  <body>   
  	<div class="mini-toolbar" style="border:0;font-size:12px;padding-left:6px;"> 
        <!-- 操作面板 -->
        <div class="operatePanel">
	       	<input id="order_list_quer" class="mini-button" text="确认" iconCls="icon-btn-accept" plain="false" 
	       		onclick="OrderHandler.disposeOrder('queRBtn')"/>
	       	<input id="order_list_qux" class="mini-button" text="取消" iconCls="icon-btn-cancel" plain="false" 
	       		onclick="OrderHandler.disposeOrder('quXBtn')"/>
	       	<input id="order_list_yic" class="mini-button" text="移除" iconCls="icon-remove" plain="false" 
	       		onclick="OrderHandler.disposeOrder('yiCBtn')"/>
	      	<input id="order_list_query" class="mini-button" text="展开查询" iconCls="icon-btn-expand" plain="false"  
		       	onclick="OrderHandler.orderQuery"/>
		    <input id="order_list_adv_query" class="mini-button" text="高级查询" iconCls="icon-btn-advancedSearch" 
		    	plain="false" onclick="OrderHandler.toHigherQuery"/>
	       	<input id="order_list_refresh" class="mini-button" text="刷新" iconCls="icon-btn-refresh" plain="false" 
	       		onclick="OrderHandler.afresh"/>
	    </div>
	    <!-- 查询面板 -->
	    <div id="queryOrderDiv" class="queryPanel">
	    	<form id="orderQueryForm">
		    	<label class="queryPanelLbl">订单号：</label>
		    	<input class="mini-textbox" id="boiOsn" name="boiOsn"/>
		    	<label class="queryPanelLbl">收货人：</label>
		    	<input class="mini-textbox" id="boiConsignee" name="boiConsignee"/>
		    	<label class="queryPanelLbl">订单状态：</label>
		    	<input class="mini-combobox" id="boiOrder" name="boiOrder" textField="text" valueField="id"/>
		    	<label class="queryPanelLbl">支付状态：</label>
		    	<input class="mini-combobox" id="boiPay" name="boiPay" textField="text" valueField="id"/>
		    	<label class="queryPanelLbl">配送状态：</label>
		    	<input class="mini-combobox" id="boiShip" name="boiShip" textField="text" valueField="id"/>
		    	<input class="mini-button" text="查询" iconCls="icon-btn-search" plain="false" 
		    		onclick="OrderHandler.queryOrderList"/>
	    	</form>
	    </div>
    </div>
    <div class="mini-fit" id="orderPanel">
	    <div id="orderGrid" class="mini-datagrid" fitColumns="true" style="width:100%;height:100%;" 
	    	multiSelect="true" pageSize="20" borderStyle="border-bottom:0;border-left:0;border-right:0;"
	    	virtualScroll="true" idField="boiId">
	        <div property="columns">
	        	<div type="checkcolumn" ></div>
	            <div type="indexcolumn" width="40" headerAlign="center">序号</div>
	            <div field="boiOsn" name="boiOsn" width="145" headerAlign="center" align="center" allowSort="true">订单号</div>    
	            <div field="boiOtime" name="boiOtime" width="125" headerAlign="center" allowSort="true">订购时间</div> 
	            <div field="boiMember" name="boiMember" width="0" headerAlign="center" >订购人编号 </div>
	            <div field="bmbNick" name="bmbNick" width="0" headerAlign="center" >订购人 </div>
	            <div field="boiConsignee" name="boiConsignee" width="100%" headerAlign="center" allowSort="true">收货人信息</div>
	            <div field="boiMobile" name="boiMobile" width="0" headerAlign="center" align="center">收货人手机号</div>
	            <div field="boiDetail" name="boiDetail" width="0" headerAlign="center" align="center">收货地址</div>  
	            <div field="boiGpay" name="boiGpay" width="95" headerAlign="center" align="left" allowSort="true">商品总额</div>   
	            <div field="boiTpay" name="boiTpay" width="95" headerAlign="center" align="left" allowSort="true">应付总额</div>
	            <div field="boiOrder" name="boiOrder" width="70" headerAlign="center" align="center" allowSort="true">订单状态</div>
	            <div field="boiPay" name="boiPay" width="70" headerAlign="center"align="center" allowSort="true">支付状态</div>
	            <div field="boiShip" name="boiShip" width="70" headerAlign="center"align="center" allowSort="true">配送状态</div> 
	            <div field="boiOperate" width="70" headerAlign="center"align="center" allowSort="true">操作</div>
	        </div>
	    </div>
    </div>
  </body>
  <script src="handler/OrderMgrData.js" type="text/javascript"></script>
  <script src="handler/OrderHandler.js" type="text/javascript"></script>
</html>
